package com.gtlab1207.br_security.models.dao;

import com.gtlab1207.br_security.models.domain.Encryption;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EncryptionDao {

    public int addEncryption(Encryption record);

    public int deleteEncryption(@Param("provideOrg")String provideOrg, @Param("topicId") String topicId);

    public int updateEncryption(Encryption record);

    public List<Encryption> selectAll();

    public List<Encryption> selectEncryptionByCondition(Encryption condition);

    public Encryption selectEncryptionById(@Param("provideOrg") String provideOrg,@Param("topicId") String topicId);

}
